#define _CRT_SECURE_NO_WARNINGS  1

//int main()
//{
//	char arr1[20] = { 0 };
//	char arr2[] = "abcdefghi";
//	strncpy(arr1, arr2, 3);
//	printf("%s\n", arr1);
//	return 0;
//}

//int main()
//{
//	char arr1[20] = "XXXXXXXXXXXXX";
//	char arr2[] = "abc";
//	strncpy(arr1, arr2, 6);
//	printf("%s\n", arr1);
//	return 0;
//}

//int main()
//{
//	char arr1[20] = "abc\0xxxxxxxxxxxxx";
//	char arr2[] = "defghi";
//	strncat(arr1, arr2, 10);
//	printf("%s\n", arr1);
//
//	return 0;
//}

#include<stdio.h>
#include<string.h>
int main()
{
	char arr1[] = "abczef";
	char arr2[] = "abcqw";

	int ret = strncmp(arr1, arr2, 4);
	printf("%d\n", ret);
	return 0;
}